<?php

namespace api\resource\controller;

use cmf\controller\RestAdminBaseController;
use think\View;

class CurrencyController extends RestAdminBaseController
{
    function select_h5()
    {
        $id = $this->request->param('id', 0, 'intval');

        $where = ['status' => 1];
        $lists = db('currency')->where($where)->select();

        $view = get_view();

        $view->assign('header',[
            'token' => $this->token,
            'device' => $this->deviceType
        ]);
        $view->assign('lists', $lists);
        $view->assign('id', $id);
        echo $view->fetch();
        die;
    }
}